package com.ruoyi.employer.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货人信息对象 cargo_consignee
 * 
 * @author adf
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CargoConsignee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 收货人名 */
    @Excel(name = "收货人名")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 卸货地（省市区） */
    @Excel(name = "卸货地", readConverterExp = "省=市区")
    private String area;

    /** 详细地址（街道门牌号等） */
    @Excel(name = "详细地址", readConverterExp = "街=道门牌号等")
    private String address;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("area", getArea())
            .append("address", getAddress())
            .toString();
    }
}
